<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/admin/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
        .tdrow{
           font-weight: bold;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <table class="layui-table">
        <tbody>
            <tr>
                <td colspan="6" style="font-weight: bold;font-size: 16px;">
                    基础信息                   
                </td>
            </tr>
            <tr>
                <td><span class="tdrow">名称</span>{$info.title}</td>
                <td><span class="tdrow">logo</span> <img src="{$info.logo}" onclick="look_pic('{$info.logo}')" style="width:30px;height:30px;" /></td>
                <td><span class="tdrow">电话</span>{$info.phone}</td>
                <td><span class="tdrow">地址</span>{$info.address}</td>
            </tr>
            <tr>
                <td><span class="tdrow">代理商：</span>{$info['agent']['name']}</td>
                <td><span class="tdrow">创建时间</span>{$info['address']}</td>
                <td><span class="tdrow">营业状态</span>{$info['address']}</td>
                <td><span class="tdrow">用户名</span>{$info['address']}</td>
            </tr>

        </tbody>
    </table>

    <table class="layui-table">
        <tbody>
            <tr></tr>
            <tr>
                <td colspan="6" style="font-weight: bold;font-size: 16px;">
                    配送信息                   
                </td>
            </tr>

            <tr>
                <td><span class="tdrow">起送价格</span>{$info['agent']['name']}</td>
                <td><span class="tdrow">开始营业时间</span>{$info['address']}</td>
                <td><span class="tdrow">结束营业时间</span>{$info['address']}</td>
                <td><span class="tdrow">用户名</span>{$info['address']}</td>
            </tr>

            <tr>
                <td><span class="tdrow">是否支持自提</span>{$info['agent']['name']}</td>
                <td><span class="tdrow">是否自动出餐</span>{$info['address']}</td>
                <td><span class="tdrow">出餐时间</span>{$info['address']}</td>
                <td><span class="tdrow">营业日期</span>{$info['address']}</td>
            </tr>

            <tr>
                <td><span class="tdrow">可配送时间状态</span>{$info['agent']['name']}</td>
                <td><span class="tdrow">打烊期间是否接受预定</span>{$info['address']}</td>
                <td><span class="tdrow">是否接受预定</span>{$info['address']}</td>
                <td><span class="tdrow">是否自动接单</span>{$info['address']}</td>
            </tr>
        </tbody>
    </table>

    <table class="layui-table">
        <tbody>
            <tr>
                <td colspan="6" style="font-weight: bold;font-size: 16px;">
                    资金信息                   
                </td>
            </tr>
            <tr>
                <td><span class="tdrow">代理商提点</span>{$info.title}</td>
                <td><span class="tdrow">余额</span> <img src="{$info.logo}" onclick="look_pic('{$info.logo}')" style="width:30px;height:30px;" /></td>

            </tr>
            <tr>
                <td class="tdrow">名称</td>
                <td class="tdrow">抽点</td>
                <td class="tdrow">抽点金额</td>
            </tr>
            <tr>
                <td>111</td>
                <td>111</td>
                <td>111</td>

            </tr>

        </tbody>
    </table>



 
</div>
<script src="/static/admin/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/static/admin/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script>
            var look_pic;
      layui.use(['layer', 'form', 'laydate', 'element', 'upload'], function () {
        var $ = layui.$, layer = layui.layer, table = layui.table,  element = layui.element,laydate = layui.laydate, form = layui.form, upload = layui.upload;
        var indexFrame = parent.layer.getFrameIndex(window.name); //获取窗口索引

        $("#saveButton").on('click', function () {
            var loading = layer.open({ type: 3 });
            $.ajax({
                url: "{:url('add')}",
                type: 'post',
                data: $("#DataForm").serialize(),
                success: function (data) {
                    console.log(data);
                    layer.close(loading);
                    if (data.code == 0) {
                        parent.tableReload();
                        parent.layer.close(indexFrame);
                        parent.layer.msg(data.msg);
                    } else {
                        layer.msg(data.msg);
                    }
                }
            })
            return false;
        })

        $("#closeButton").on('click', function () {
            parent.layer.close(indexFrame);
        })

        // 分步表单下一步
        $(".downButton").on('click', function () {
            var id = $(".layui-this").next().attr('lay-id');
            element.tabChange('itemTab', id);
        });
        // 分步表单上一步
        $(".upButton").on('click', function () {
            var id = $(".layui-this").prev().attr('lay-id');
            element.tabChange('itemTab', id);
        });

        look_pic = function (pic) {
            layer.open({
                type: 1,
                title: false,
                closeBtn: 0,
                area: ['auto'],
                skin: 'layui-layer-nobg', //没有背景色
                shadeClose: true,
                content: '<img src="' + pic + '" style="width:200px;" />'
            });
        };

        });
</script>
</body>
</html>